//
// Created by 15760 on 2022/11/8.
//

#ifndef CPP_PROJECT_ROUND_H
#define CPP_PROJECT_ROUND_H

#include "card.h"
#include "piles.h"
class Player;

class Round {
public:
    BaseBuildings baseBuildings;
    OrdinaryBuildings ordinaryBuildings;
    LandmarkBuildings landmarkBuildings;
    Round() {}
    void play();
    void checkAllCardsForEachPlayer(unsigned int points, Player & pl);  //检查当前骰子的点数是否触发玩家的卡牌
    const bool cardCanBeExchanged(Card &card) const;  //检查卡片能否交换
    void exchangeTwoCards(Player& p1, const Card& c1, Player& p2, const Card& c2);
    const bool win(Player& player) const;
};


#endif //CPP_PROJECT_ROUND_H
